
package com.sskj.jkzx.domain.entity.amap.message;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import org.hibernate.annotations.BatchSize;

import com.sskj.core.entity.BaseEntity;

@Table(name = "jkzx_message")
@Entity
@BatchSize(size = 50)
public class Message extends BaseEntity {

	private static final long serialVersionUID = -4376120665319608124L;

	@Column
	private String type;

	@Column(length = 4000)
	private String content;

	public Message() {
		super();
	}

	public Message(String type, String content) {
		super();
		this.type = type;
		this.content = content;
	}

	@Override
	public String toString() {

		return "Message [type=" + type + ", content=" + content + "]";
	}

	public String getType() {

		return type;
	}

	public void setType(String type) {

		this.type = type;
	}

	public String getContent() {

		return content;
	}

	public void setContent(String content) {

		this.content = content;
	}

}
